import { BinaryDecision } from "framework/FSM/DecisionTree/Decision";
 
/**
 * 判断PC是否启用。指绑定了房间
*/
export class DecisionIsActivePC <T extends IStateArg<PowerCreep>> extends BinaryDecision<T>
{

    public testValue(arg:T): boolean
    {
        if(arg.entity.memory.OwnerRoom)
        {
            return true
        }
        return false;
    }

    value: any;


    public setValue(val: any)
    {
        this.value = val;
    }
}

